import setting from './set-axios';
const fetch = setting();

export default {
  //添加进购物车的商品数据
  postCarList: fetch.bind(this, '/lsz/cart/indent', 'post'),
  //添加需要支付的商品数据
  postBuyList: fetch.bind(this, '/lsz/cart/payment', 'post'),
  //获取全部订单
  getOrders: fetch.bind(this, '/lsz/cart/cartList', 'get'),
  //获取已支付的订单
  getOrderPay: fetch.bind(this, '/lsz/cart/paidList', 'get'),
  //获取未支付的订单
  getOrderUnpay: fetch.bind(this, '/lsz/cart/UnpaidList', 'get'),
  //删除购物车 根据cid
  deleteCartItem:fetch.bind(this, '/lsz/cart/deleteIndent', 'post')
};